package com.dream.house.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.com.servyou.base.exception.DAOException;

import com.dream.house.dao.base.IDAO;
import com.dream.house.entity.RentDTO;

@Repository
public interface RentDAO extends IDAO{

	boolean saveRent(RentDTO dto) throws DAOException;
	
	boolean updateRent(RentDTO dto) throws DAOException;
	
	boolean removeRent(String id) throws DAOException;
	
	RentDTO getRent(String id) throws DAOException;
	
	List<RentDTO> findRents(RentDTO dto) throws DAOException;
	
	boolean updateRentStatus(String id,String status) throws DAOException;
	
	public List<RentDTO> getRentsByRoom(String room_id) throws DAOException;
}
